package com.braska.grave.netty.sender;

import com.braska.grave.netty.model.Request;
import io.netty.channel.Channel;

import java.net.SocketAddress;

/**
 * @author shenyuhang
 * @date 2020/3/31
 **/
public interface RequestSender {
    Channel connect(SocketAddress address) throws InterruptedException;

    Object send(Request request) throws InterruptedException;
}
